import http from "~/utils/http";
// 获取支付订单信息
export const getPayOrderInfo = (orderSn) => {
  return http({
    url: "payOrder/pay/getInfoByOrderSn?orderSn="+orderSn,
    method: "get",
  });
};
// 支付宝pc支付
export const getQuickpayToPcAlipay = (orderSn) => {
  return http({
    url: "payOrder/pay/alipay/pc/unifiedOrder?orderSn="+orderSn,
    method: "get",
  });
};
// 支付宝H5支付
export const getQuickpayToH5Alipay = (orderSn) => {
  return http({
    url: "payOrder/pay/alipay/h5/unifiedOrder?orderSn="+orderSn,
    method: "get",
  });
};
//微信H5支付
export const wxH5QuickPay = params => {
    return http({
        url: "payOrder/pay/wx/h5/unifiedOrder",
        method: "get",
        params
    });
};
//pc的微信支付二维码
export const wxWechatQuickPay = params => {
    return http({
        url: "payOrder/pay/wx/native/unifiedOrder",
        method: "get",
        params
    });
};
//微信授权支付
export const wxAuthorizationQuickPay = params => {
    return http({
        url: "payOrder/pay/wx/authorizeurl",
        method: "get",
        params
    });
};
// 微信内置浏览器微信支付
export const wxBrowserQuickPay = params => {
    return http({
        url: "payOrder/pay/wx/unifiedOrder",
        method: "get",
        params
    });
};
